import request from '@/utils/request'

// 获取渠道列表
export function getTableDataApi(data) {
    return request({
        url: '/api/system.source/index',
        method: 'post',
        data: data
    })
}

export function getTreeApi(data) {
  return request({
    url: "/api/system.source/getTree",
    method: "post",
    data: data,
  });
}

export function readSourceApi(data) {
    return request({
        url: '/api/system.source/read',
        method: 'post',
        data: data
    })
}

export function createSourceApi(data) {
    return request({
        url: '/api/system.source/create',
        method: 'post',
        data: data
    })
}

export function saveSourceApi(data) {
    return request({
        url: '/api/system.source/save',
        method: 'post',
        data: data
    })
}

export function deleteSourceApi(data) {
    return request({
        url: '/api/system.source/delete',
        method: 'post',
        data: data
    })
}